package com.dreamcar.auction.helper;

import com.dreamcar.inventory.ws.Inventory;
import com.dreamcar.inventory.ws.InventoryService;
import com.dreamcar.inventory.ws.RequestDTO;

public class InventoryWSClientHelper {
	
	private static InventoryService service;
	private static Inventory inventory;
	
	static{
		service = new InventoryService();
		inventory = service.getInventoryPort();
	}

	public static boolean validateRequest(RequestDTO requestDTO) {
		return inventory.validateRequest(requestDTO);
	}
	
	public static int scheduleWorkInFactory(RequestDTO request) {
		return inventory.scheduleWorkInFactory(request);
	}

}
